using System.Collections.Generic;
using AllIsWell.Core.Models;
using AllIsWell.Persistance;
using AllIsWell.Services.Infrastructure;

namespace AllIsWell.Services
{
    public class DestinyService : IDestinyService
    {
        private readonly IDestinyRepository _destinyRepository;

        public DestinyService(IUnitOfWork unitOfWork)
        {
            _destinyRepository = unitOfWork.DestinyRepository;
        }

        public IEnumerable<Destiny> Destinies
        {
            get { return _destinyRepository.Destinies; }
        }

        public Destiny GetDestiny(int destinyId)
        {
            return _destinyRepository.GetDestiny(destinyId);
        }
    }
}